<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlterExpertsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('experts', function (Blueprint $table) {
            $table->string('name')->comment("名称");
            $table->string('pic',100)->comment('头像')->nullable();
            $table->tinyInteger("sex")->nullable()->default(0)->comment("性别[男,女]");
            $table->string('birthday',100)->default('')->comment('生日');
            $table->string('position',100)->default('')->comment('职务');
            $table->string('professional',100)->default('')->comment('职称');
            $table->string('work_unit',100)->default('')->comment('工作单位');
            $table->string('domain',200)->comment('研究领域');
            $table->string('achievement',255)->default('')->comment('成果');
            $table->text('content')->comment("简介")->nullable();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('experts', function (Blueprint $table) {
            //
        });
    }
}
